package com.h5lib.nchupfficeApp;

import android.os.Handler;
import android.os.HandlerThread;

public class Exit {

    private boolean isExit = false;
    
    private Runnable task = new Runnable() {  
        public void run() {  
            isExit = false;  
        }  
    };  
      
    public void doExitInOneSecond() {  
        isExit = true;  
        HandlerThread thread = new HandlerThread("doTask");  
        thread.start();  
        new Handler(thread.getLooper()).postDelayed(task, 2000);  
    }  
      
    public boolean isExit() {  
        return isExit;  
    }  
      
    public void setExit(boolean isExit) {  
        this.isExit = isExit;  
    }  
    
}
